package io.github.talelin.latticy.dto.location;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/7
 * @description:
 */

@Data
public class LocationDTO {

    /**
     * 区域id
     */
    @Positive
    private Integer areaId;

    /**
     * 库位优先级
     */
    @Positive
    private Integer locationOrder;

    /**
     * 库位名称
     */
    @NotBlank(message = "{location.not-blank}")
    @Length(min = 2, max = 20, message = "{location.length}")
    private String name;
}
